package com.ali.sso.common.shiro.realm;

import org.apache.shiro.authc.AuthenticationToken;

/**
 * 应用身份(登陆用户)认证TOKEN
 * @author cwang
 */
public class AppAuthenticationToken implements AuthenticationToken {
	private static final long serialVersionUID = 1L;
	
	//授权码或者叫信用凭证
	private String authCode;
	private String principal;
	
	public AppAuthenticationToken(String authCode) {
        this.authCode = authCode;
    }

    @Override
    public Object getCredentials() {
        return authCode;
    }
    
    public String getAuthCode() {
        return authCode;
    }
    public void setAuthCode(String authCode) {
        this.authCode = authCode;
    }

    public String getPrincipal() {
        return principal;
    }
    public void setPrincipal(String principal) {
        this.principal = principal;
    }
    
}
